<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
const token = localStorage.getItem("token");
if (!token) {
  router.push("/login");
}
</script>

<style scoped>
</style>